package com.feituan.core.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author xiaohu
 * @since 2024-05-09
 */
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName("t_order")
public class Order extends BaseEntity {

    public final static short status_not_pay = 0;
    public final static short status_payed = 1;
    public final static short status_cancel = 2;

    public final static short freight_type_self = 0;
    private static final long serialVersionUID = 1L;

    private String orderSn;

    private Long userId;

    private Long merchantId;
    private Integer type;
    private String merchantName;
    private String roomName;
    private Long couponId;
    private Short orderStatus;
    private BigDecimal goodsPrice;
    private BigDecimal couponPrice;
    private BigDecimal orderPrice;
    @ApiModelProperty("提货方式，0自提 1配送")
    private Short freightType;
    @ApiModelProperty("提货方码")
    private String fetchCode;
    private String remark;
    private String products;
    private String payId;
    private Date payTime;

    /**
     * 支付类型（1-微信支付，2-余额支付
     */
    private Integer payType;

    /**
     * 取餐时间
     */
    private Date takeFoodTime;

    private String phone;

    /**
     * 预约时间
     */
    private Date appointmentTime;

    /**
     * 用餐人数
     */
    private Integer usePersonNum;
}
